import request from '@/utils/request'

// 查询库房单位与科室对照列表 (分页)
export function selectPageMaterialStorageVsDept(query) {
    return request({
        url: '/material/materialStorageVsDept/selectPage',
        method: 'get',
        params: query
    })
}

// 查询库房单位与科室对照列表 (不分页)
export function listMaterialStorageVsDept(query) {
    return request({
        url: '/material/materialStorageVsDept/list',
        method: 'get',
        params: query
    })
}

// 查询库房单位与科室对照详细
export function getMaterialStorageVsDept(id) {
    return request({
        url: '/material/materialStorageVsDept/' + id,
        method: 'get'
    })
}

// 新增库房单位与科室对照
export function addMaterialStorageVsDept(data) {
    return request({
        url: '/material/materialStorageVsDept',
        method: 'post',
        data: data
    })
}

// 修改库房单位与科室对照
export function updateMaterialDept(data) {
    return request({
        url: '/material/materialStorageVsDept',
        method: 'put',
        data: data
    })
}

// 删除库房单位与科室对照
export function delDept(id) {
    return request({
        url: '/material/materialStorageVsDept/' + id,
        method: 'delete'
    })
}
